/*
 * WaterLayer.h
 *
 *  Created on: Oct 18, 2012
 *      Author: quyetnd
 */

#ifndef WATERLAYER_H_
#define WATERLAYER_H_
#include "cocos2d.h"
#include "FishLayer.h"
#include "RockLayer.h"

USING_NS_CC;

class WaterLayer : public CCLayer{
protected:
	FishLayer* fishLayer;
	RockLayer* rockLayer;

	CCSprite* background;
	CCSprite* topLayerLeft;
	CCSprite* topLayerRight;

	bool move;
	bool layerMoveUp;
	bool layerMoveDown;
public:
	WaterLayer();
	virtual ~WaterLayer();

	virtual void moveUp(float dt);
	virtual void moveDown(float dt);

	LAYER_NODE_FUNC(WaterLayer);

	void startMoveUp();
	void startMoveDown();
};

#endif /* WATERLAYER_H_ */
